package StatuSync::Web;
use strict;

# web interface

use base qw(StatuSync::Log);
use StatuSync::Web::Admin;

use AnyEvent::HTTPD;

my $httpd;

sub init {
	my $class = shift;
	$httpd = AnyEvent::HTTPD->new(port => 9077);
	$class->info("Daemon started at ... ");
	$httpd->reg_cb(
		'/admin' => sub { StatuSync::Web::Admin->handler(@_) },
	);
	return $class;
}


1;

